#ifndef GV_SETUPTIMEDIALOG_H
#define GV_SETUPTIMEDIALOG_H
#include<QtGui>
#include <QtGui/QWidget>
#include <QtCore/QTextCodec>
#include <QDialog>
#include "ui_setuptime.h"
class QTimer;
enum{
    DISPLAYMODE12HOURS=0,
    DISPLAYMODE24HOURS,
    TIMESTATUSHOUR,
    TIMESTATUSMINUTE,
    TIMESTATUSSECOND
};
class GV_SetupTimeDialog:public QDialog, public Ui::SetupTimeDialog
{
    Q_OBJECT
signals:
    void currentTime();
public:
    GV_SetupTimeDialog(QWidget *parent = 0);

    QTimer *timer;
private slots:
    void GV_chTime();
    //void home();

    void cancel();
    void accept();

    void timeselect();
    void displaymodeselect();

    void setuphour();
    void setupminute();
    void setupsecond();

    void decreasevalue();
    void increasevalue();

    void check12hour();
    void check24hour();
private:
    int myhour;
    int myminute;
    int mysecond;
    int timestatus;
    int mydisplaymode;
    void reloadtext();
};
#endif // GV_SETUPTIMEDIALOG_H
